package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BizMonthlyExpensesMapper;
import com.ruoyi.system.domain.BizMonthlyExpenses;
import com.ruoyi.system.service.IBizMonthlyExpensesService;

/**
 * 月度开销Service业务层处理
 * 
 * @author luoshuai
 * @date 2023-06-20
 */
@Service
public class BizMonthlyExpensesServiceImpl implements IBizMonthlyExpensesService 
{
    @Autowired
    private BizMonthlyExpensesMapper bizMonthlyExpensesMapper;

    /**
     * 查询月度开销
     * 
     * @param orderId 月度开销主键
     * @return 月度开销
     */
    @Override
    public BizMonthlyExpenses selectBizMonthlyExpensesByOrderId(Long orderId)
    {
        return bizMonthlyExpensesMapper.selectBizMonthlyExpensesByOrderId(orderId);
    }

    /**
     * 查询月度开销列表
     * 
     * @param bizMonthlyExpenses 月度开销
     * @return 月度开销
     */
    @Override
    public List<BizMonthlyExpenses> selectBizMonthlyExpensesList(BizMonthlyExpenses bizMonthlyExpenses)
    {
        return bizMonthlyExpensesMapper.selectBizMonthlyExpensesList(bizMonthlyExpenses);
    }

    /**
     * 新增月度开销
     * 
     * @param bizMonthlyExpenses 月度开销
     * @return 结果
     */
    @Override
    public int insertBizMonthlyExpenses(BizMonthlyExpenses bizMonthlyExpenses)
    {
        return bizMonthlyExpensesMapper.insertBizMonthlyExpenses(bizMonthlyExpenses);
    }

    /**
     * 修改月度开销
     * 
     * @param bizMonthlyExpenses 月度开销
     * @return 结果
     */
    @Override
    public int updateBizMonthlyExpenses(BizMonthlyExpenses bizMonthlyExpenses)
    {
        return bizMonthlyExpensesMapper.updateBizMonthlyExpenses(bizMonthlyExpenses);
    }

    /**
     * 批量删除月度开销
     * 
     * @param orderIds 需要删除的月度开销主键
     * @return 结果
     */
    @Override
    public int deleteBizMonthlyExpensesByOrderIds(Long[] orderIds)
    {
        return bizMonthlyExpensesMapper.deleteBizMonthlyExpensesByOrderIds(orderIds);
    }

    /**
     * 删除月度开销信息
     * 
     * @param orderId 月度开销主键
     * @return 结果
     */
    @Override
    public int deleteBizMonthlyExpensesByOrderId(Long orderId)
    {
        return bizMonthlyExpensesMapper.deleteBizMonthlyExpensesByOrderId(orderId);
    }
}
